package com.shensi.api.admin.client.station;

import com.shensi.api.admin.client.fallback.monitor.SysLogininforClientFallBack;
import com.shensi.api.admin.domian.station.dto.StaffForm;
import com.shensi.api.admin.domian.station.dto.StaffVO;
import com.shensi.api.admin.domian.station.dto.StationBalanceChangeDto;
import com.shensi.common.core.annotation.Log;
import com.shensi.common.core.constant.CloudConstant;
import com.shensi.common.core.domain.AjaxResult;
import com.shensi.common.core.enums.BusinessType;
import com.shensi.common.core.page.TableDataInfo;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.constraints.NotNull;


/**
 * @author mao
 */
@FeignClient(
        value = CloudConstant.ADMIN_SERVER,
        fallbackFactory = SysLogininforClientFallBack.class)
@Component
public interface StationBalanceChangeClient {

    /**
     * 查询LNG油站余额变化记录列表
     */
    @GetMapping("/station/stationBalanceChange/list")
    public TableDataInfo list(@SpringQueryMap StationBalanceChangeDto stationBalanceChange);

    /**
     * 导出LNG油站余额变化记录列表
     */
    @GetMapping("/station/stationBalanceChange/export")
    public AjaxResult export(@SpringQueryMap StationBalanceChangeDto stationBalanceChange);

    /**
     * 获取LNG油站余额变化记录详细信息
     */
    @GetMapping(value = "/station/stationBalanceChange/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id);

    /**
     * 新增LNG油站余额变化记录
     */
    @PostMapping("/station/stationBalanceChange/add")
    public AjaxResult add(@RequestBody StationBalanceChangeDto stationBalanceChange);

    /**
     * 修改LNG油站余额变化记录
     */
    @PutMapping("/station/stationBalanceChange")
    public AjaxResult edit(@RequestBody StationBalanceChangeDto stationBalanceChange);

    /**
     * 删除LNG油站余额变化记录
     */
    @DeleteMapping("/station/stationBalanceChange/{ids}")
    public AjaxResult remove(@PathVariable("ids") Long[] ids);
}
